<?php
namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\HasMedia\HasMedia;
use Spatie\MediaLibrary\HasMedia\HasMediaTrait;

class OauthUser extends Model implements HasMedia
{

    use HasMediaTrait;

    protected $table = 'oauth_user';

    public function users(){
        return $this->belongsTo('App\Model\User', 'user_id');
    }
}